load("@fbsource//tools/build_defs:rust_library.bzl", "rust_library")

oncall("scm_server_infra")

rust_library(
    name = "wait_for_replication",
    srcs = glob([
        "src/**/*.rs",
    ]),
    named_deps = {"slog": "//common/rust/shed/tracing_slog_compat:tracing_slog_compat"},
    deps = [
        "fbsource//third-party/rust:anyhow",
        "fbsource//third-party/rust:futures",
        "fbsource//third-party/rust:tokio",
        "fbsource//third-party/rust:tracing",
        "//common/rust/shed/cached_config:cached_config",
        "//common/rust/shed/fbinit:fbinit",
        "//configerator/structs/scm/mononoke/mysql/replication_lag:replication_lag_config-rust",
        "//eden/mononoke/common/rust/sql_ext:sql_ext",
        "//eden/mononoke/metaconfig:metaconfig_types",
    ],
)
